/**
 * @Author: ls <ls-mac>
 * @Date:   2019-08-13 18:46:47
 * @Last modified by:   ls-mac
 * @Last modified time: 2020-04-20 00:37:37
 */
import request from '../utils/reqaxios';

// /extraItem/add 套餐加项新增
export async function extraItemAdd(params) {
  return request({
    url: '/extraItem/add',
    method: 'post',
    data: params,
  });
}

// /extraItem/delete 套餐加项删除
export async function extraItemDelete(params) {
  return request({
    url: '/extraItem/delete',
    method: 'post',
    data: params,
  });
}
// /extraItem/detail 套餐加项详情
export async function extraItemDetail(params) {
  return request({
    url: '/extraItem/detail',
    method: 'post',
    data: params,
  });
}
// /extraItem/edit 套餐加项修改
export async function extraItemEdit(params) {
  return request({
    url: '/extraItem/edit',
    method: 'post',
    data: params,
  });
}
// /extraItem/list 套餐加项列表
export async function extraItemList(params) {
  return request({
    url: '/extraItem/list',
    method: 'post',
    data: params,
  });
}
// /extraItem/page 套餐加项分页列表
export async function extraItemPage(params) {
  return request({
    url: '/extraItem/page',
    method: 'post',
    data: params,
  });
}
// /extraItemDetail/addOrEdit 套餐加项明细新增和修改
export async function extraItemDetailAddOrEdit(params) {
  return request({
    url: '/extraItemDetail/addOrEdit',
    method: 'post',
    data: params,
  });
}
// /extraItemDetail/delete 套餐加项明细删除
export async function extraItemDetailDelete(params) {
  return request({
    url: '/extraItemDetail/delete',
    method: 'post',
    data: params,
  });
}
// /extraItemDetail/list 套餐加项明细列表
export async function extraItemDetailList(params) {
  return request({
    url: '/extraItemDetail/list',
    method: 'post',
    data: params,
  });
}

// /appApi/extraItem/relation
// 查询套餐关联的套餐加项列表(小程序后台公用)
export async function extraItemRelation(params) {
  return request({
    url: 'shop/extraItem/relation',
    method: 'post',
    data: params,
  });
}
